#include <stdio.h>

int main()
{
	int n = 0;
	int m = 0;
	int arr[100] = {0,1,0};
	int last = 1;
	scanf("%d",&n);
	
	for(int i = 0;i<n;i++)
	{
		for(int j = 1;j<=last;j++)
		{
			arr[j]*=2;
		}
		for(m = 1;m<=last||arr[m]!=0;m++)
		{
			arr[m+1] += arr[m]/10;
			arr[m]%=10;
		}
		last = m-1;
	}
	for(m = last;m>=1;m--)
	{
		printf("%d",arr[m]);
	}
	
	return 0;
}
